"""
Quick demo of built in PanedWindow in Tkinter to replace uses of Pmw.PanedWidget
"""

from Tkinter import Label, PanedWindow, Tk
from Tkinter import BOTH, HORIZONTAL, VERTICAL

root = Tk()

pw1 = PanedWindow(root, orient=HORIZONTAL)
pw1.pack(fill=BOTH, expand=True)

pw2 = PanedWindow(pw1, orient=VERTICAL)
pw2.pack(fill=BOTH, expand=True)

pw2.add(Label(pw2, text='top'), minsize=100)
pw2.add(Label(pw2, text='bottom'), minsize=100)

pw1.add(pw2, minsize=100)

pw1.add(Label(pw1, text='Right'), minsize=200)

root.mainloop()
